<?php
class Cms_Model_DAO_Question
{    
	private $_db;
	private static $_instance = null;
	private static $_table = "questions";
 
	/**
	 * @return Cms_Model_DAO_Question
	 * */
	public static function factory() {
		if(self::$_instance == null) {
			self::$_instance = new self();
		}
		
		return self::$_instance;
	}
	
    private function __construct()
    {
    	$module = Utils_Global::get('module');
		$this->_db = Utils_Global::getDbInstance($module);
    }
	
    public function insert($data) {
        $result = $this->_db->insert(self::$_table, $data);
        return $result;
    }
}